#include "heapsort.h"

int main ()
{

	// CreateNDate () ;

	int k = 0 ;

	scanf ("%d" , &k) ;

	PrintTopK (k) ;

	return 0 ;

}